package com.example.demo.service.impl;

import com.example.demo.domain.Student;
import com.example.demo.domain.Vo.studentListVo;
import com.example.demo.mapper.StudentMapper;
import com.example.demo.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements IStudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<studentListVo> selectStudent(Student student) {
        return studentMapper.selectStudent(student);
    }

    @Override
    public void insertStudent(Student student) {
        studentMapper.insertStudent(student);
    }

    @Override
    public void updateStudentByAccount(Student student) {
studentMapper.updateStudentByAccount(student);
    }

    @Override
    public void delStudentByAccount(String account) {
studentMapper.delStudentByAccount(account);
    }

    @Override
    public Student selectOneStudent(Student student) {
        return studentMapper.selectOneStudent(student);
    }
}
